package com.itheima.document.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.itheima.sys.dto.CompanyUserDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 *
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DocFileDTO {

    private Long id;

    private Long folderId;

    private Long companyId;

    private Long companyUserId;

    private String name;

    private String filePath;

    private String fileSize;

    private Boolean enable;

    private Integer authority;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Long updateUserId;

    private String content;

    //作者
    private CompanyUserDTO creator;

    //协作者列表
    private List<CompanyUserDTO> collaborations;

    private String updateUserName;  //最后更新人名称"

    private String username;  //用户名

}
